package com.tobe.spring_demo.xmlstart;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

/**
 * @author yangqifan 2015年9月10日
 * 
 */
@Component
public class MyAppleFactory implements FactoryBean<Apple> {

	public Apple getObject() throws Exception {
		return new Apple();
	}

	public Class<?> getObjectType() {
		return Apple.class;
	}

	public boolean isSingleton() {
		return false;
	}

}

